import {Component, OnInit }from '@angular/core'; 
import {SignInRecord} from '../../domain/sign-in-record'
import {AdministrativeService} from '../../service/administrative.service'
import { User } from 'src/app/domain/user';
/*

@Author:刘洋

@Date: 2018-12-12

@员工打卡信息查询功能实现

@Last Modified time: 2018-12-16
*/
@Component( {
selector:'app-administrative-signin-info', 
templateUrl:'./administrative-signin-info.component.html', 
styleUrls:['./administrative-signin-info.component.css']
})
export class AdministrativeSigninInfoComponent implements OnInit {

constructor(private administrativeService:AdministrativeService) {}
signInInfo:SignInRecord[];
user:User;
ngOnInit() {
    this.searchSign('','','');
}

searchSign(startday:string,endday:string,ID:string){
    this.administrativeService.searchSign(startday,endday,ID)
    .subscribe(signInInfo => this.signInInfo = signInInfo);
}

}
